From ae7ac39190a1d1ed420aa7c4ba166542cc3df932 Mon Sep 17 00:00:00 2001 From: parkrrrr Date: Fri, 26 May 2006 23:04:36 +0000 Subject: [PATCH] Fix bug when merging non-image an1 with gpx to make image an1 --- gpsbabel/an1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/an1.c b/gpsbabel/an1.c index 8d603469b..00e4ea735 100644 --- a/gpsbabel/an1.c +++ b/gpsbabel/an1.c @@ -813,7 +813,7 @@ Write_One_AN1_Waypoint( const waypoint *wpt ) rec->lon = EncodeOrd( -wpt->longitude ); rec->serial = serial++; - if ( wpt_type_num == 0x12 ) { /* image */ + if ( rec->type == 0x12 ) { /* image */ if ( strstr( wpt->icon_descr, ":\\" )) { rec->image_name = xstrdup( wpt->icon_descr ); rec->height = -244; -- 2.30.2